// 导入createRoot方法
import { createRoot } from "react-dom/client";

// 路由
import { BrowserRouter as Router } from "react-router-dom";

// 导入根组件App.tsx
import App from "./App";

// 创建root对象
const root = createRoot(document.querySelector("#root") as HTMLDivElement);

// 渲染
root.render(
  <Router>
    <App />
  </Router>
);